@ECHO OFF
SETLOCAL EnableDelayedExpansion


SET MSBuild="%WINDIR%\\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"

SET MSBuildParam=
SET MSBuildParam=%MSBuildParam% /nologo
SET MSBuildParam=%MSBuildParam% /maxcpucount
SET MSBuildParam=%MSBuildParam% /property:Configuration=Release
SET MSBuildParam=%MSBuildParam% /target:Build
SET MSBuildParam=%MSBuildParam% /verbosity:Normal

SET SolutionFolder=.
SET SolutionListFile=Solutions.txt

FOR /F "tokens=*" %%a IN ('TYPE %SolutionListFile%') DO (
	%MSBuild% %MSBuildParam% %SolutionFolder%\%%a
	IF NOT %errorlevel%==0 PAUSE
)

ENDLOCAL
PAUSE
EXIT /b